/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx.mapper;

import cn.webrx.vo.VoBook;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>Project: mybatis2021 - BookMapper
 * <p>Powered by webrx On 2021-10-27 11:22:36
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public interface BookMapper {
    //@Select("select book_id id,book_name name from wx_book order by book_id desc")


    @Results(id = "vv", value = {
            @Result(id = true, property = "id", column = "book_id"),
            @Result(property = "name", column = "book_name", javaType = java.lang.String.class)
    })
    @Select("select * from wx_book order by book_id desc")
    //@ResultMap("vb")
    public List<VoBook> queryAll();


    public List<VoBook> show();


    public List<Map<String, Object>> myshow(Map<String, Object> map);


    public List<Map<String, Object>> queryByName();

    public List<Map<String, Object>> queryByName(Map<String, Object> map);


    public int update(Map<String, Object> map);

    public int adda(Map<String, Object> map);
    public int addb(Map<String, Object> map);


    public int delteBy(Map<String, Object> map);

    public int del();
    public int del(Map<String, Object> map);

}
